widget: Remove parent-set signal
authorTimm Bäder <mail@baedert.org>
Sun, 29 Oct 2017 15:10:12 +0000 (16:10 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 29 Oct 2017 16:24:12 +0000 (17:24 +0100)
commitff6cd8f75ea929e28e94c1ea295fe1c624d6f241
tree460b7dd83169602a98b3c15b544d69d3a8f8affa
parent0be4166b89633218199be58540ed6498aeef6f98
widget: Remove parent-set signal

When a widget unparents its child widget manually in finalize, this can
lead to the parent-set signal being emitted for those child widgets. The
parent already has a ref_count of 0 though, so it can't be used in a
meaningful way. Specifically, emitting the signal will already try to
ref the parent which prints a critical.

Since GtkWidget already has a "parent" property, one can use its notify
signal instead to get notified when the parent widget changes.
gtk/gtklistbox.c
gtk/gtkmenuitem.c
gtk/gtktoolitem.c
gtk/gtkwidget.c
gtk/gtkwidget.h